package com.botarena.server.model;

import java.util.Date;

import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class Contest extends Entity {
	@Persistent
	private String name;
	@Persistent
	private Date from;
	@Persistent
	private Date to;
	@Persistent
	private Key owner;
	
	public Contest() {

	}
	
	public Contest(String name) {
		this();
		this.name = name;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public Date getFrom() {
		return from;
	}
	
	public void setFrom(Date from) {
		this.from = from;
	}
	
	public Date getTo() {
		return to;
	}
	
	public void setTo(Date to) {
		this.to = to;
	}
	
	public Key getOwner() {
		return owner;
	}
	
	public void setOwner(Key owner) {
		this.owner = owner;
	}
}
